import request from '@/utils/request'

// export function getDevices(params) {
//   return request({
//     url: '/device/brief/all',
//     method: 'get',
//     params
//   })
// }
export function getDevices(params) {
  return request({
    url: '/devices',
    method: 'get',
    params
  })
}

export function getGroupLocation(params) {
  return request({
    url: '/location/group/1',
    method: 'get',
    params
  })
}

export function getHistory(type, params) {
  return request({
    url: '/device/history/' + type,
    method: 'get',
    params
  })
}
